import { Injectable } from '@angular/core';
import {Subject} from "rxjs";

@Injectable({
    providedIn: 'root'
})
export class SideNavService {
    private isSideNavClosedSource = new Subject<boolean>();
    isSideNavClosed$ = this.isSideNavClosedSource.asObservable();

    toggleSideNav(isClosed: boolean) {
        this.isSideNavClosedSource.next(isClosed);
    }
}
